projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
964bae8
)
Stupid windows doesn't get feof right, so add test for null read at eof.
author
robertl
<robertl>
Tue, 1 Oct 2002 18:37:27 +0000
(18:37 +0000)
committer
robertl
<robertl>
Tue, 1 Oct 2002 18:37:27 +0000
(18:37 +0000)
gpx.c
patch
|
blob
|
history
diff --git
a/gpx.c
b/gpx.c
index 152ff2194047ff51c5666250514c4266ad343c9c..ce7ad7442ea79242939301140fbe143af6089561 100644
(file)
--- a/
gpx.c
+++ b/
gpx.c
@@
-195,7
+195,7
@@
gpx_read(void)
while (!done) {
len = fread(buf, 1, sizeof(buf), fd);
- done = feof(fd);
+ done = feof(fd)
|| !len
;
if (!XML_Parse(psr, buf, len, done)) {
fatal(MYNAME ": XML parse error at %d: %s\n",
XML_GetCurrentLineNumber(psr),